package com.hnichr.ump.common.ecard.service;

import com.hnichr.ump.common.ecard.entity.EcardBusinessCard;
import com.hnichr.ump.common.ecard.vo.WxBindVO;
import com.mxpioframework.jpa.query.Criteria;
import com.mxpioframework.system.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface EcardBusinessCardService extends BaseService<EcardBusinessCard> {
    EcardBusinessCard getByOpenId(String openId);

    String getOpenIdByCode(String code);

    String bind(WxBindVO vo);

    @Override
    EcardBusinessCard update(EcardBusinessCard card);


    List<EcardBusinessCard> list(Criteria c);

    Page<EcardBusinessCard> listPage(Pageable page,Criteria c);


}
